<?php
session_start();
include_once("function_right.php");
if(!JudgeUserRight()) return FALSE;
?>
<?php
include "function_net_route.php";

$in_array = array("Enabled", "Ospf", "OspfAuthKey", "OspfAuthType", "RecvIp",
                  "Rip", "RipAuthKey", "RipAuthType", "RipProto", "SendIp");

$in_array["Enabled"]= $_POST['run'];
$in_array['Ospf']= $_POST['ospf'];
$in_array['OspfAuthKey'] = $_POST['ospf_auth_key'];
$in_array['OspfAuthType'] = $_POST['ospf_auth_type'];
$in_array['Rip'] = $_POST['rip'];
$in_array['RipAuthKey'] = $_POST['rip_auth_key'];
$in_array['RipAuthType'] = $_POST['rip_auth_type'];
$in_array['RipProto'] = $_POST['rip_proto'];

$in_array['SendIp'] = $_POST[''];
$in_array['RecvIp'] = $_POST[''];

SetXmlForDynamicRoutes($in_array);

echo("<meta http-equiv='refresh'content=0;URL='net_route_dynamic_display.php'>");   

?>
